import { Button } from 'antd'
import {useNavigate} from 'react-router-dom'
import React from 'react'
import './style.css'
export default function PL() {
    const navigate=useNavigate()
  const tjpl=()=>{
    localStorage.setItem('pl',document.querySelector('.val').value)
    navigate(-1)
  }
  return (
    <div>
      <textarea name="" id="" cols="30" rows="10" placeholder='请输入评论的内容' className='val'></textarea>
      <p><Button type='primary' onClick={()=>tjpl()}>提交评论</Button></p>
    </div>
  )
}
